package chapter04.Demo3;

abstract class Animal{
    //定义抽象方法shout()
    abstract  void shout();
}
class Dog extends  Animal{
    void shout(){
        System.out.println("汪汪汪.....");
    }
}
public class Example10 {
    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.shout();
    }
}